﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;

namespace THO7AlgoritmTimerApplication
{
    class Blacken2Algorithm : VisionAlgorithm
    {
        public Blacken2Algorithm(String name) : base(name) { }
        public override System.Drawing.Bitmap DoAlgorithm(System.Drawing.Bitmap sourceImage)
        {
            Bitmap returnImage = new Bitmap(sourceImage);
            Rectangle rect = new Rectangle(0,0,sourceImage.Width,sourceImage.Height);
            Graphics g = Graphics.FromImage(returnImage);
            SolidBrush myBrush = new SolidBrush(Color.Black);
            g.FillRectangle(myBrush, rect);
       
            g.Dispose();
            
            return returnImage;
        }
    }
}
